https://bugzilla.gnome.org/show_bug.cgi?id=601290
height: height * scale });
box.add_actor(clone);
- let name = new St.Label({ text: windows[i].get_title() });
- // St.Label doesn't support text-align so use a Bin
- let bin = new St.Bin({ x_align: St.Align.MIDDLE });
- bin.add_actor(name);
- box.add_actor(bin);
+ let title = windows[i].get_title();
+ if (title) {
+ let name = new St.Label({ text: title });
+ // St.Label doesn't support text-align so use a Bin
+ let bin = new St.Bin({ x_align: St.Align.MIDDLE });
+ bin.add_actor(name);
+ box.add_actor(bin);
+ }
this.addItem(box);
}
{
char *title;
g_object_get (info->window, "title", &title, NULL);
+ if (!title)
+ title = g_strdup ("");
return title;
}
}